package ming.model.type;

import java.util.Date;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.commons.lang.StringUtils;
@Entity
@Table(name = "t_apply_NewFamilyMembersNames", schema = "")
public class NewFamilyMembersNames {
	private String id;
	private String familyMembersName;
	private int familyMembersSex;
	private String memberShip;
	private String memberIdType;
	private String memberIdNumber;
	private String contactNumber;
	private String rlicId;
	private Date createTime;
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	public String getId() {
		if (!StringUtils.isBlank(this.id)) {
			return this.id;
		}
		return UUID.randomUUID().toString();
	}
	@Column(name = "familyMembersName", length = 256)
	public String getFamilyMembersName() {
		return familyMembersName;
	}
	public int getFamilyMembersSex() {
		return familyMembersSex;
	}
	@Column(name = "memberShip", length = 32)
	public String getMemberShip() {
		return memberShip;
	}
	@Column(name = "memberIdType", length = 32)
	public String getMemberIdType() {
		return memberIdType;
	}
	@Column(name = "memberIdNumber", length = 64)
	public String getMemberIdNumber() {
		return memberIdNumber;
	}
	@Column(name = "contactNumber", length = 64)
	public String getContactNumber() {
		return contactNumber;
	}
	@Column(name = "rlicId", length = 32)
	public String getRlicId() {
		return rlicId;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATEDATETIME", length = 7)
	public Date getCreateTime() {
		return createTime;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setFamilyMembersName(String familyMembersName) {
		this.familyMembersName = familyMembersName;
	}
	public void setFamilyMembersSex(int familyMembersSex) {
		this.familyMembersSex = familyMembersSex;
	}
	public void setMemberShip(String memberShip) {
		this.memberShip = memberShip;
	}
	public void setMemberIdType(String memberIdType) {
		this.memberIdType = memberIdType;
	}
	public void setMemberIdNumber(String memberIdNumber) {
		this.memberIdNumber = memberIdNumber;
	}
	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}
	public void setRlicId(String rlicId) {
		this.rlicId = rlicId;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	

}
